package com.cstp.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @author watts
 */
public class QuestionnaireEnum {

    @Getter
    public enum State {
        /**
         * 状态
         */
        NORMAL(1, "正常"),
        REJECTED(2, "拒绝"),
        DELETED(3, "删除"),
        ;

        State(int code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        @EnumValue
        private final int code;
        private final String desc;
    }

    @Getter
    public enum Type {
        /**
         * 类型
         */
        COMMON(1, "公共"),
        PERSONAL(2, "个人");

        Type(int code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        @EnumValue
        private final int code;
        private final String desc;
    }
}
